package com.hzncc.flowable_diboot.coderule.service;

import com.diboot.core.service.BaseService;
import com.hzncc.flowable_diboot.coderule.entity.CodeRule;

import java.text.ParseException;
import java.util.List;

/**
 * 编码规则 相关Service接口定义
 *
 * @author MyName
 * @version 1.0
 * @date 2024-06-28
 * Copyright © MyCorp
 */
public interface CodeRuleService extends BaseService<CodeRule> {

    /**
     * 生成编码
     *
     * @param ruleCode 编码规则
     * @param i        生成个数
     * @return
     * @author 陈广煜
     * @date 2024/6/28
     */
    List<String> generateCode(String ruleCode, int i) throws ParseException;

    String generateCode(String ruleCode);
}